import request from '../utils/request';

export const login = (data) => {
  return request({
    method: 'POST',
    url: '/api/user/login',
    data,
  });
};

export const invitation = (data, uid, mid,sid) => {
  return request({
    method: 'POST',
    url: '/api/signup/add',
    params: { uid: uid, mid: mid ,sid:sid},
    data,
  });
};

export const getMeeting = (id) => {
  return request({
    method: 'GET',
    url: '/api/meeting/fetch',
    params: { id: id },
  });
};

export const register = (data) => {
  return request({
    method: 'POST',
    url: '/api/user/reg',
    data,
  });
};

//重置密码
export const reSet = (data) => {
  return request({
    method: 'POST',
    url: '/api/user/reset',
    data,
  });
};
